package main

import (
	"fmt"
	"mes/routes"
	"net/http"
)

func main() {

	//MQTT.InitMQTT()
	//调用路由
	routes.RegisterRoutes()
	server := http.Server{
		Addr:    "localhost:8080",
		Handler: nil,
	}

	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte("Hello world,,,"))
	})

	fmt.Println("test,,,,,,,,,,")
	server.ListenAndServe()

}
